package week8;

public class Car extends Transport{
    private String fuelType;
    public Car(String name, int speed,String fuelType){
        super(name,speed);
        this.fuelType=fuelType;
    }

    @Override
    public void showInfo() {
        super.showInfo();
        System.out.println(super.getName()+"的燃料类型为"+fuelType);
    }
}
